package cn.wolfcode.fegin;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.*;
import cn.wolfcode.fegin.fallback.PayFeginApiFeginFallback;
import cn.wolfcode.fegin.fallback.ProductFeginApiFeginFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @Author: 普发忠
 * @Date: 2021/11/09/15:21
 */

@FeignClient(name = "pay-service",fallback = PayFeginApiFeginFallback.class)
public interface PayFeginApi {
 

    @RequestMapping("/alipay/payOnlin")
    Result<String> payOnlin(@RequestBody PayVo payVo);
    
    @RequestMapping("/alipay/valIdatasign")
    Result<Boolean> valIdatasign(@RequestParam Map<String, String> params);
    
    @RequestMapping("/alipay/refundOnLine")
    Result<Boolean> refundOnLine(@RequestBody  RefundVo refundVo);
    

}
